import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const TokenName = 'Token-Name'

export function getTokenName() {
  return Cookies.get(TokenName)
}

export function setTokenName(token) {
  return Cookies.set(TokenName, token)
}
export function getTokenValue() {
  return Cookies.get(TokenKey)
}
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setTokenValue(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function setId(id) {
  return Cookies.set('id', id)
}
